package test;

import static org.junit.Assert.*;

import org.junit.Test;

public class CartePrepayerTest2 {
	
	private CartePrepayer carte = new CartePrepayer(100);
	
	@Test
	public void testCartePrepayer() {
		assertNotSame(carte,null);
	}

	@Test
	public void testGetCredit() {
		assertEquals(100,carte.getCredit());
	}

	@Test
	public void testSetCredit() {
		carte.setCredit(200);
		assertEquals(200, carte.getCredit());
		carte.setCredit(100);
	}


	/*@Test
	public void testCalculerCredit_Telephone() {
		fail("Not yet implemented");
	}

	@Test
	public void testCalculerCredit_Smartphone() {
		fail("Not yet implemented");
	}*/

}
